package com.fuyao.cloud.personnel.mapper;

import com.fuyao.cloud.common.data.datascope.CloudBaseMapper;
import com.fuyao.cloud.personnel.api.dto.SalaryTreeDTO;
import com.fuyao.cloud.personnel.api.entity.Salary;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 工资记录表
 *
 * @author 碎月
 * @date 2021-12-16 10:35:16
 */
@Mapper
public interface SalaryMapper extends CloudBaseMapper<Salary> {

    /**
     * 获取所有年份对应的月份
     * @return
     */
    List<SalaryTreeDTO> getAllYearMonth();

    /**
     * 获取所有年份
     * @return
     */
    List<String> getAllYear();

}
